<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>DatabaseError</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">DatabaseError()</font></b></p>
<p><b>语法</b></p><blockquote>

Error$ = <font color="#006666"><b>DatabaseError</b></font>()</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns a description of the last database error in text format. This is especially useful with the following 
functions: <a href="opendatabase.html">OpenDatabase()</a>, <a href="databasequery.html">DatabaseQuery()</a> and <a href="databaseupdate.html">DatabaseUpdate()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>



Returns the error description. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <font color="#006666">; First, connect to a database with an employee table</font>
  <font color="#006666">;</font>
  <b><font color="#006666">If</font></b> <font color="#006666">DatabaseQuery</font>(<font color="#924B72">#Database</font>, "SELECT * FROM employee") <font color="#006666">; Get all the records in the 'employee' table</font>
    <font color="#006666">; ...</font>
<font color="#006666">    FinishDatabaseQuery</font>(<font color="#924B72">#Database</font>)
  <b><font color="#006666">Else</font></b>
<font color="#006666">    MessageRequester</font>("Error", "Can't execute the query: "+<font color="#006666">DatabaseError</font>())
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="databasequery.html">DatabaseQuery()</a>, <a href="databaseupdate.html">DatabaseUpdate()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=databasedrivername.html>DatabaseDriverName()</a> - <a href=index.html>Database Index</a> - <a href=databaseid.html>DatabaseID()</a> -&gt;



</body></html>